def transpose_list_of_lists(lists):
    """Switch inner and outer indices for a list of lists."""
    return [[lists[i][j] for i in xrange(len(lists))]
            for j in xrange(len(lists[0]))]
